package pointer

import "fmt"

func TestPointer1() { //指针类型
	var myInt int
	var myIntPointer *int //声明一个指向int的指针变量
	myIntPointer = &myInt //给变量分配一个指针，&表示取地址

	fmt.Println(myIntPointer)

	var myBool bool
	myBoolPointer := &myBool
	fmt.Println(myBoolPointer)
}
